import request from '../lib/request'

// params是object类型的请求参数
// school.PBStudentListReq 是定义好的请求体model
// school.PBStudentListRsp 是定义好的响应model
// getStudentList 是接口名称
/**
 * 获取学生列表
 * @param {*} params 
 */
export function getStudentList (params) {
  const req = request.create('PBStudentListReq', params)
  return request('/api','getStudentList', req, 'school.PBStudentListRsp')
}
/**
 * 获取学生信息
 * @param {*} params 
 */
export function getStudentInfo (params) {
  const req = request.create('PBStudentInfoReq', params)
  return request('/api/info','getStudentInfo', req, 'school.PBStudenInfoRsp')
}

